//////////////////////////////////////////////////////////////////////////
//	Name: CDXText.h
//	Purpose: Will Create and display text!!
//	Created: October 25, 2009 - Christian Sassi
//////////////////////////////////////////////////////////////////////////

#pragma once

#include <d3dx9.h>
#include <string>

using std::string;

class CDXText
{
private:
	ID3DXFont *m_pFont;

public:
	CDXText();
	~CDXText();
	//////////////////////////////////////////////////////////////////////////
	//	Name: CreatFont
	//	Purpose: Creates a new font.
	//	In: nHeight - How high the font is - 20 is a good number
	//		nWidth - How Wide the font is - 0 - 5 is a good number
	//		bIsItalic - Is the font Italicized?
	//      szFontName - What font you want. IE: Arial
	//	Out:
	//	Return:	HRESULT - Error Code
	//////////////////////////////////////////////////////////////////////////
	HRESULT CreatFont(int nHeight, int nWidth,bool bIsItalic,string szFontName);

	//////////////////////////////////////////////////////////////////////////
	//	Name: DisplayText
	//	Purpose: Displays the loaded font. Make sure this is called after begin scene
	//	In: x - X - position of where to draw, upper left hand corner.
	//		y - Y - position of where to draw, upper left hand corner.
	//		d3Color - Color of the font - IE: D3DCOLOR_ARGB(255,0,0,255);  
	//      szText - What text to draw.
	//	Out:
	//	Return:	void
	//////////////////////////////////////////////////////////////////////////
	void DisplayText(int x, int y, D3DCOLOR d3Color, string szText);
	
};